/******************************************************************************\
*           Copyright (C) 2000 Texas Instruments Incorporated.
*                           All Rights Reserved
*------------------------------------------------------------------------------
* FILENAME...... csl.h
* DATE CREATED.. 06/13/2000 
* LAST MODIFIED. 08/02/2004 - Adding support for C6418
*                07/24/2004 - Re-introducing BIOS components from CSL due to compatibility issues.
*                06/26/2003  Added CHIP_6411
*                06/17/2003  Added CHIP_6712C
*                05/28/2003  Added CHIP_6711C
*                03/26/2003 -  6412,DM642 check libraries 
*                10/10/2001 -  6712-6713-6414-6416-6415  check libraries
*                11/19/2003 - Removed BIOS components from CSL - _CSL_Config
*
\******************************************************************************/
#ifndef _NICK_LI_HEADER_H_
#define _NICK_LI_HEADER_H_


/* Flash address definitions */
#define EVMDM642_FLASH_BASE          0x90000000
#define EVMDM642_FLASH_SECTORSIZE    0x010000
#define EVMDM642_FLASH_SECTORS       0x8
#define EVMDM642_FLASH_PAGES         0x8
#define EVMDM642_FLASH_PAGESIZE      0x080000
#define EVMDM642_FLASH_SIZE          0x400000
#define EVMDM642_FLASH_CTL555        (EVMDM642_FLASH_BASE + 0x555)
#define EVMDM642_FLASH_CTLAAA        (EVMDM642_FLASH_BASE + 0xaaa)
#define EVMDM642_FLASH_SUPPORT       1
 
/* Calculate the checksum of a data range in Flash */
Uint32 EVMDM642_FLASH_checksum(Uint32 start, Uint32 length);

/* Erase a segment of Flash memory */
void EVMDM642_FLASH_erase(Uint32 start, Uint32 length);

/* Read data from a range in Flash */
void EVMDM642_FLASH_read(Uint32 src, Uint32 dst, Uint32 length);

/* Write data to a data range in Flash */
void EVMDM642_FLASH_write(Uint32 src, Uint32 dst, Uint32 length);


#endif //_NICK_LI_HEADER_H_
